package com.sokal.easycare.modules.contract.entity;

import org.hibernate.validator.constraints.Length;

import com.sokal.easycare.common.persistence.DataEntity;

/**
 * 合同模板Entity
 * @author liliangdong
 * @version 2017-04-13
 */
public class ContractTemplate extends DataEntity<ContractTemplate> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 模板定义名称
	private String content;		// 模板定义内容
	private String version;		// 模板定义版本
	
	public ContractTemplate() {
		super();
	}

	public ContractTemplate(String id){
		super(id);
	}

	@Length(min=1, max=255, message="模板定义名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=9, message="模板定义版本长度必须介于 0 和 9 之间")
	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
}